#include<iostream>
struct ListData
{
   void init();
   bool operator==(ListData& comData);
   void operator=(ListData* );
   void show();

   int a;
   float b;
};

class LinkedStackNode
{
   public:
   LinkedStackNode* next;
   ListData data;
   // LinkedStackNode& operator=(LinkedStackNode);
};

class LinkedStack
{
    public:
    LinkedStack();
    int IfEmpty();
    int GetLength();
    ListData& GetTop();
    void Clear();
    void Push(ListData& pushData);
    void Pop();
    ~LinkedStack();

    private:
    LinkedStackNode* top;
    int length=0;
};